package Lecture7;

public class ClassTask7 {

	public static void main(String[] args) 
	
	{
		int a = 15;
		int b = 10;
		
		System.out.println(devNum(a, b));		
	}

	public static int devNum(int a, int b)
	{
		
		if (a > b)
		{
			return devNum(a - b, b);
		}
		else
			if(b>a)
		{
			return devNum(a, b - a);
		}
		
		else 
		{
			return a;
		}
	}

	
}
